﻿<%@ Page Title="所有订单" Language="C#" MasterPageFile="~/List.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="BBPA.Admin.Store.Orders.List" %>

<%@ MasterType VirtualPath="/List.Master" %>
<asp:Content ID="Content4" ContentPlaceHolderID="head" runat="server">
    <script>
        bodyWidth = 550;
    </script>
   <style>
       .control{ color:blue;}
   </style>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_th" runat="server">
    <th>订单编号</th>
    <th>创建日期</th>
    <th>状态</th>
    <th>发货日期</th>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_td" runat="server">
    <td data-row-title="<%#Eval("Number") %>" data-row-href-right="/sys/Orders/Info.aspx?id=<%#Eval("id") %>"><%#Eval("Number") %></td>
    <td><%#Eval("Dateandtime") %></td>
    <td><%#EnumHelper.GetEnumDescription((EnumHelper.OrdersState)DataTypePlus.requestInt( Eval("State"))) %></td>
    <td><%#(EnumHelper.OrdersState)DataTypePlus.requestInt( Eval("State"))==EnumHelper.OrdersState.HasSend?(Convert.ToDateTime( Eval("DateandtimeSend"))).ToShortDateString():""%></td>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_listControls" runat="server">
    <a href="###" href-list="/sys/Orders_Goods/List.aspx?OrdersID=<%#Eval("id") %>&search_radio_actualamount=1" title="订单<%#Eval("Number") %>已采购的货品" target="_blank">已采</a>
    <a href="###" href-list="/sys/Orders_Goods/List.aspx?OrdersID=<%#Eval("id") %>&search_radio_actualamount=0" title="订单<%#Eval("Number") %>未采购的货品" target="_blank">未采</a>
</asp:Content>
